package com.youlu.campus.entity.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
public class WechatAccessToken implements Serializable {
    @JsonProperty("openid")
    private String openId;
    @JsonProperty("access_token")
    private String accessToken;
    @JsonProperty("nickname")
    private String nickName;
    @JsonProperty("headimgurl")
    private String headimgurl;
    /**
     * 用户的性别，值为1时是男性，值为2时是女性，值为0时是未知
     */
    private Integer sex;
    private String country;
    private String province;
    private String city;
    private List<String> privilege;
    @JsonProperty("unionid")
    private String unionId;
    @JsonProperty("expires_in")
    private Integer expireIn;
    @JsonProperty("refresh_token")
    private String refreshToken;
    private String scope;
    // 40163 重复使用
    private Integer errcode;
    private String errmsg;
    /**
     * 微信：1，系统:2,其他:3
     */
    private String nickImageType;
    /**
     * 有效头像
     */
    private Boolean validLogo = Boolean.TRUE;
}
